package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 用户排名实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("rankings")
@Schema(name = "Ranking", description = "用户排名实体类")
public class Ranking implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "排名ID")
    @TableId(value = "ranking_id", type = IdType.AUTO)
    private Integer rankingId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户得分")
    private Integer score;

    @Schema(description = "用户排名")
    private Integer rank;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
} 